<template>
  <div class="wrap" id="wrap" v-loading="loading">
    <transition name="fade-transverse">
      <router-view/>
    </transition>
  </div>
</template>
<script>
import { mapState } from 'vuex';
export default {
  name: 'wrap',
  data() {
    return {};
  },
  computed: mapState({
    loading: state => state.global.ajax_loading
  })
};
</script>

<style scoped lang='scss'>
.fade-transverse-leave-active,
.fade-transverse-enter-active {
  transition: all .3s;
}
.fade-transverse-enter {
  opacity: 0;
  transform: translateX(-30px);
}
.fade-transverse-leave-to {
  opacity: 0;
  transform: translateX(30px);
}
</style>
